.search {
  $bk-color: var(--bk-color);
  $tx-color: var(--tx-color);
  $width: var(--width);
  $width-input: var(--width-input);

  $box-opacity: var(--current-opacity);

  width: $width;
  display: flex;
  flex-flow: row;
  justify-content: center;

  .inputBox {
    width: $width;
    height: 40px;
    padding: 5px 5px;
    position: relative;
    background-color: $bk-color;
    color: $tx-color;
    opacity: $box-opacity;

    border-radius: 25px;
    box-shadow: 1px 3px 5px #333;

    transition: 0.3s;
    .input {
      outline: none;
      width: $width-input;
      height: 40px;
      margin: 0 10px;
      padding: 0 15px;

      background-color: $bk-color;
      font-size: 18px;
      color: $tx-color;

      border: none;
      border-radius: 50px;
    }
    .button {
      outline: none;
      width: 40px;
      height: 40px;
      position: absolute;
      right: 5px;
      bottom: 5px;

      border-radius: 50%;
      border: 0.1px solid #333;

      &:hover {
        color: #000;
        background-color: rgba(238, 238, 238, 0.603);
      }
    }
  }

  .inputBox:hover {
    opacity: 1;
  }
}

@keyframes search {
  0% {
    border-radius: 50%;
    width: 40px;
  }
  1% {
    border-radius: 25px;
    width: 40px;
    opacity: 0.9;
  }
  100% {
    border-radius: 25px;
    width: 500px;
    opacity: 1;
  }
}